
package com.idealighter.game.games.foursshop.handler;

import com.idealighter.game.core.annotation.ResMsgHandler;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.robot.core.Player;
import com.idealighter.game.robot.handler.ResMessageHandler;


@ResMsgHandler(504202)

public class ResChipsChangeHandler implements ResMessageHandler {

  // private static final Logger LOG = LoggerFactory.getLogger(ResChipsChangeHandler.class);

  @Override
  public void action(Player player, ResMessage message) {
    // ResChipsChangeMsg msg = (ResChipsChangeMsg) message;
    // FoursShopStrategy gameStrategy = (FoursShopStrategy) player.gameStrategy;
    // com.idealighter.game.gamehall.dto.SeatInfo seat = gameStrategy.seat(player.playerId);
    // if (seat.getPlayerId() == msg.getPlayerId()) {
    // MemInfo memInfo = gameStrategy.member(player.playerId);
    // memInfo.setChips(msg.getChips());
    // LOG.info("玩家[{}][{}]兑换筹码[{}]成功", player.playerId, player.userName, memInfo.getChips());
    // }
  }
}
